import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'

import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';

import  './duckdb.js'

// 引入初始化样式文件
import './styles/common.scss'

// 引入echarts
import Echarts from 'vue-echarts'
import * as echarts from 'echarts'

const app = createApp(App)
const pinia = createPinia()
app.use(pinia)
app.use(router)
app.use(ElementPlus)

// 使用echarts组件
app.component('e-charts', Echarts)

// 全局挂载echarts
app.config.globalProperties.$echarts = echarts

app.mount('#app')
